<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>lotex.Report</title>

<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<!-- Common Styles for the examples -->
<link rel="stylesheet" type="text/css" href="../examples.css" />

<!-- LIBS -->
<script type="text/javascript" src="../../jquery-latest.pack.js"></script>
<script type="text/javascript" src="../../jquery-plugins.js"></script>
<!-- ENDLIBS -->
<script type="text/javascript" src="../../ext-jquery-adapter.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>

</head>
<body>

<!--script type="text/javascript" src="../examples.js"></script><!-- EXAMPLES -->
<div id="rpt"></div>
<button id="mb1">Run Again</button>
<div id="chartTest1"></div>
<div id="testSheetToTabel"></div>
</body>
</html>
<script type="text/javascript" src="lotex-all.js"></script>
<script type="text/javascript">
var D = console.debug;
var OB = lotex.cli.createOption;

function testCli() {
var ns=lotex;
    var cellOpts = new ns.cli.Options();
    cellOpts.addOption(OB('exp').name('expression').dv(true)
        .desc('判断该格的值是否为表达式'));

    cellOpts.addOption(OB('fp').name('fillpoint').dv('default')
        .desc('确定该格为填充点fillpoint，可带参数-fp [fpname] [order]'));

    cellOpts.addOption(OB('sm').name('scanmode').dv('colfirst')
        .desc('确定下一个填充点fillpoint的寻找模式，可选colfirst,rowfirst'));

    cellOpts.addOption(OB('fs').name('fillsample').dv('default')
        .desc('表示该点为填充范例'));

    cellOpts.setDefault({
        scanmode: 'colfirst',
        expression: false
    });

    //cellOpts.setDefault();

    var cmdline = "-fp --fillsample";
    D(cellOpts.input(cmdline).out('fp'));
var aaa = cellOpts.input(cmdline).out();
    var cmdline = "-fp a --fillsample";
    D(cellOpts.input(cmdline).out('fp'));

    var cmdline = "-fp a 1 --fillsample";
    D(cellOpts.input(cmdline).out('fp'));

    var cmdline = "    --expression";
    D(cellOpts.input(cmdline).out('expression'));
    var aaa = cellOpts.input(cmdline).out();
    var aaa = cellOpts.input(cmdline).out();

};

Ext.onReady(function(){
    testCli();
    Ext.get('mb1').on('click', function(e){
        testCli();
    });
});
</script>
